<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>洛天工作室</title>
    <link href="css/ui-lightness/jquery-ui-1.10.4.custom.css"
          rel="stylesheet">
    <script src="js/jquery-1.10.2.js"></script>
    <script src="js/jquery-ui-1.10.4.custom.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#accordion").accordion();
        });
    </script>
    <style type="text/css">
        body {
            font: 72.5% "Trebuchet MS", sans-serif;
            margin: 50px;
            background-color: #7ecef4;
        }

        .datalist {
            border: 1px solid #0058a3; /* 表格边框 */
            font-family: Arial;
            border-collapse: collapse; /* 边框重叠 */
            background-color: #eaf5ff; /* 表格背景色 */
            font-size: 14px;
        }

        .datalist caption {
            padding-bottom: 5px;
            font: bold 1.4em;
            text-align: left;
        }

        .datalist th {
            border: 1px solid #0058a3; /* 行名称边框 */
            background-color: #4bacff; /* 行名称背景色 */
            color: #FFFFFF; /* 行名称颜色 */
            font-weight: bold;
            padding-top: 4px;
            padding-bottom: 4px;
            padding-left: 12px;
            padding-right: 12px;
            text-align: center;
        }

        .datalist td {
            border: 1px solid #0058a3; /* 单元格边框 */
            text-align: center;
            padding-top: 4px;
            padding-bottom: 4px;
            padding-left: 10px;
            padding-right: 10px;
        }

        .datalist tr.altrow {
            background-color: #c7e5ff; /* 隔行变色 */
        }
    </style>

</head>

<body>
<jsp:include page="scoreServiceNavigation.jsp"></jsp:include>
<div id="accordion">
    <h3>成绩管理——成绩查询结果显示如下</h3>
    <div align="center">
        <div>
            <img alt=""
                 src='scoreAnalyze.action?stuXueHao=<s:property value="stuXueHao" />&stuName=<s:property value="student.stuName" />&year=<s:property value="grade.year" />&classID=<s:property value="grade.classID"/>'
                 width="1000" height="500"/>
            <hr>
            <table class="datalist">
                <tr>
                    <th colspan="6"><s:property value="grade.year"/>届（<s:property value="grade.classID"/>）班&nbsp;&nbsp;&nbsp;&nbsp;学号：<s:property
                            value="stuXueHao"/>&nbsp;&nbsp;&nbsp;&nbsp;姓名：<s:property value="student.stuName"/></th>
                </tr>
                <tr>
                    <th>学期</th>
                    <th>课程编号</th>
                    <th>课程名称</th>
                    <th>考试时间</th>
                    <th>考试类型</th>
                    <th>最后成绩</th>
                </tr>
                <s:iterator value="scorePartsa">
                    <tr>
                        <th>第一学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
                <s:iterator value="scorePartsb">
                    <tr>
                        <th>第二学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
                <s:iterator value="scorePartsc">
                    <tr>
                        <th>第三学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
                <s:iterator value="scorePartsd">
                    <tr>
                        <th>第四学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
                <s:iterator value="scorePartse">
                    <tr>
                        <th>第五学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
                <s:iterator value="scorePartsf">
                    <tr>
                        <th>第六学期</th>
                        <td><s:property value="courseID"/></td>
                        <td><s:property value="courseName"/></td>
                        <td><s:property value="examTime"/></td>
                        <td><s:property value="examType"/></td>
                        <td><s:property value="score"/></td>
                    </tr>
                </s:iterator>
            </table>
            <hr>
        </div>
    </div>
</div>
</body>
</html>
